--
-- Author: mm
-- Date: 2018-03-19 14:55:37
--
-- NewCreateGuildSureUI
-- 工会创建确认UI

local fileName = string.getModeName(...)
local ClassRef = class(fileName, app.mvc.ViewBase)

ClassRef.VIEW_ROOT_RES = Res.NewCreateGuildSureUI

function ClassRef:init()
	self._ui.Button_quxiao:addClickEventListener(function()
		executeFunc(self._onCloseView)
	end)
	self._ui.Button_queding:addClickEventListener(function()
		executeFunc(self._onOperate,"create_guild_sure",self._data)
	end)


	local costData = UD:parseRewardToBagItem(GD:getSystemStrPar("guildCreateCost"))
	self._ui.num:setString( tostring(costData:getAmount()) )
	self._ui["Panel/icon"]:loadTexture(costData:getSmallIcon())
	self._ui.tips_txt:setString( self._data.name )
end

function ClassRef:show()
	self:setVisible(true)
	self:openAction()
end

return ClassRef
